﻿using WholesaleOnline.Controller.Request;
using WholesaleOnline.Controller.Storage;

namespace WholesaleOnline.Controller.Handlers
{
    public class InvalidHandler : RequestHandler
    {
        public InvalidHandler(IHttpStorage storage) : base(storage) { }

        public override void Handle(WebRequest request)
        {
            Storage.Add(HttpStorageKeys.Exception, "无效地址:" + request.RequestedURL);
            Storage.Add(HttpStorageKeys.Json, "{}");
        }
    }
}
